#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
int main()
{
	int x = -1;
	int count = 0;
	while (x)
	{
		count++;
		x = x & (x - 1);
	}
	printf("%d ", count);
	return 0;
}